import request from '@/utils/request'

// 查询招生报到列表
export function listStudentCheckin(query) {
  return request({
    url: '/student/studentCheckin/list',
    method: 'get',
    params: query
  })
}

// 查询招生报到详细
export function getStudentCheckin(id) {
  return request({
    url: '/student/studentCheckin/' + id,
    method: 'get'
  })
}

// 新增招生报到
export function addStudentCheckin(data) {
  return request({
    url: '/student/studentCheckin',
    method: 'post',
    data: data
  })
}

// 修改招生报到
export function updateStudentCheckin(data) {
  return request({
    url: '/student/studentCheckin',
    method: 'put',
    data: data
  })
}

// 删除招生报到
export function delStudentCheckin(id) {
  return request({
    url: '/student/studentCheckin/' + id,
    method: 'delete'
  })
}

// 导出招生报到
export function exportStudentCheckin(query) {
  return request({
    url: '/student/studentCheckin/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/student/studentCheckin/importTemplate',
    method: 'get'
  })
}
